package com.wf.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import java.time.LocalDateTime;
import java.time.LocalDateTime;
/**
 * 
 * @TableName menu
 */
@TableName(value ="menu")
@Data
public class Menu implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = -4618534154871608050L;
    /**
     * 菜单ID，主键
     */
    @TableId(type = IdType.AUTO)
    private Integer menuId;

    /**
     * 父菜单ID
     */
    private Integer parentId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 路径
     */
    private String path;

    /**
     * 组件
     */
    private String component;

    /**
     * 权限标识
     */
    private String perms;

    /**
     * 图标
     */
    private String icon;

    /**
     * 类型
     */
    private String type;

    /**
     * 排序号
     */
    private Double orderNum;


    /**
     * 创建日期
     */

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;
    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;
    @TableField(exist = false)
    private List<Menu> childrenList;
}